<%@ page import="ookweb.Str"%>
<%
String paths = request.getContextPath();
String basePaths = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+paths+"/ookweb/";
%>
<%
String dbuser = application.getInitParameter("dbuser");
String dbpass = application.getInitParameter("dbpass");
String dburl = application.getInitParameter("dburl");
request.setCharacterEncoding("utf-8");
String m_username=(String)session.getAttribute("ookweb_m_username");
String m_userid=(String)session.getAttribute("ookweb_m_userid");
if(m_username==null || "".equals(m_username)){
 response.sendRedirect(basePaths+"webadmin/login.jsp");
}
 String currenturl = request.getRequestURI()+(request.getQueryString()==null?"":("?"+request.getQueryString()));
 if (Str.sql_inj(currenturl)){
    response.sendRedirect(basePaths+"/");
    return;
}
 %>
